/**
 * @(#) Dish.java
 */

package TheRestaurantOwner;

public class Dish extends MenuItem
{
	private int calorieCount;

	public Dish( String name, ItemQuality quality, int calories )
	{
		setName(name);
		setQuality(quality);
		calorieCount = calories;
	}
	
	public int getIngredientsCost( ) {
		if (getQuality() == ItemQuality.low){
			return 3;
		}
		return 10;
	}

	public int getCalorieCount( ) {
		return calorieCount;
	}
}
